]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: Fix off-centered clickable area of dash items
authornana-4 <hnmaigo@gmail.com>
Mon, 13 Jan 2020 04:58:20 +0000 (13:58 +0900)
committernana-4 <hnmaigo@gmail.com>
Fri, 17 Jan 2020 12:21:44 +0000 (12:21 +0000)
https://gitlab.gnome.org/GNOME/gnome-shell/issues/2088

data/theme/gnome-shell-sass/widgets/_dash.scss

index 20cdae5ef0dfdc9ca6edc1d6d84897f5d8f7f82d..5c1b4e1de7c9fda78f7cc037559d962a7f3a6a4f 100644 (file)
@@ -1,13 +1,13 @@
 /* Dash */
 
 $dash_placeholder_size: 32px;
+$dash_spacing: $base_padding + 4px;
 $dash_border_radius: $modal_radius * 1.5;
 
 #dash {
   @extend %overview_panel;
   @include fontsize($base_font_size - 2);
-  padding: 0;
-  padding-bottom: $base_padding + 4px;
+  padding: ($dash_spacing / 2) 0;
 
   //fixme: can't have non uniform borders :(
   border-radius: 0 $dash_border_radius $dash_border_radius 0; 
@@ -32,8 +32,7 @@ $dash_border_radius: $modal_radius * 1.5;
 
 // Dash Items
 .dash-item-container > StWidget {
-  padding: $base_padding + 4px;
-  padding-bottom: 0;
+  padding: ($dash_spacing / 2) $dash_spacing;
 }
 
 // OSD Tooltip